<script module>
    export const foo = _foo;
</script>

{#snippet _foo()}{/snippet}